package com.zh.ssmshirofreemarker.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.zh.ssmshirofreemarker.entity.Role;
import com.baomidou.mybatisplus.service.IService;
import com.zh.ssmshirofreemarker.entity.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZH
 * @since 2018-07-24
 */
public interface IRoleService extends IService<Role> {

    public Page<Role> getAll(Page<Role> page, Role role);

    public Role getRoleById(long id);

    public boolean updateRole(Role role);

    public boolean deleteRoles(String[] ids);

    public boolean addRole(Role role);

    public List<Role> getRolesByUserId(User user);

}
